﻿using System;
using System.Web;

namespace Landscape
{
    class WidgetTemplate : Template
    {
        public WidgetTemplate(string xmlTemplatePath) : base(xmlTemplatePath)
        {
            OutputMethod = OutputMethods.xml;
            OutputSettings = new TemplateOutputSettings() {
                Method = OutputMethod,
                DocTypePublic = null,
                DocTypeSystem = null,
                Encoding = "utf-8",
                OmitXmlDeclaration = true,
                 Standalone = false,
                 Indent = Context.outputIndent
            };
            ConfigureOutput(false);

            // create compiled transform object
            TemplateCompiledTransform = Context.Instance.compiler.Compile(TemplateDom);
        }
    }
}
